package com.lwl.service.impl.sas;

import com.lwl.entity.sas.TSasRecordDetail;
import com.lwl.service.sas.TSasRecordDetailService;
import com.lwl.dao.sas.TSasRecordDetailMapper;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (TSasRecordDetail)表服务实现类
 *
 * @author Lei
 * @since 2022-11-07 21:35:36
 */
@Service
public class TSasRecordDetailServiceImpl implements TSasRecordDetailService {
   @Autowired
   private TSasRecordDetailMapper tSasRecordDetailDao;

   @Override
   public boolean insertDetail(List<TSasRecordDetail> tSasRecordDetail) {

      int insert = 0;
      for (TSasRecordDetail sasRecordDetail : tSasRecordDetail) {
         insert += tSasRecordDetailDao.insert(sasRecordDetail);
      }
      return tSasRecordDetail.size()==insert;
   }
}
